|
|
|
|
|
|
|
So, what does this all mean in relation to an ActiveX document? To keep it simple, an ActiveX document is a Visual Basic application that is designed to run inside a browser like Internet Explorer instead of running as a stand-alone application, as shown in Figure 21.1. |
|
|
|
|
|
|
|
|
Figure 21.1.
Using a simple ActiveX document application from
within Internet Explorer. |
|
|
|
|
|
|
|
|
Calling this application a document comes from the way word-processing or spread-sheet files have historically been handled. All of these files contain data, but must be accessed by an application in order to be viewed or edited. For example, you can create a document in Excel and store it in a file, but if you send the file to another user, he can't do anything with it without having a copy of Excel on his PC. An ActiveX document works the same way; you can create and store an ActiveX document in a file, but if you send it to someone, she must have an application capable of supporting ActiveX documents before she can work with it. |
|
|
|
|
|
|
|
|
These days, there are several container applications that support the ActiveX document format, including Internet Explorer, Microsoft Office 97 binders, and the Visual Basic IDE. Using one of these applications, your user would be able to run your ActiveX document. |
|
|
|
|
|
|
|
|
Because there are many different ways to create an Internet application, you should know the advantages and disadvantages of using ActiveX documents. The primary reason to use ActiveX documents in Visual Basic is to create Internet-enabled applications. |
|
|
|
|
|